/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1switchdemo;

import java.util.Scanner;
import javax.sql.rowset.spi.SyncProvider;

/**
 *
 * @author apple
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("2");
        boolean isPrime=true;
        int count;
        for(int number=3;number<=1000;number++)
        {
            count=2;
            while(count<number)
            {
                if(number%count==0)
                {
                   isPrime=false; 
                   break;
                }
                count++;
            }
            if(isPrime==true)
            {
                System.out.println(number);
            }
            isPrime=true;
        }   
    }
    
}
